%matplotlib notebook
import matplotlib.pyplot as plt
plt.plot([1, 6, 3, 2, 7])
[<matplotlib.lines.Line2D at 0x7fe83c8c5518>]